package com.xx.account.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xx.common.annotation.Excel;
import com.xx.common.core.domain.BaseEntity;

/**
 * 接单对象 account_record
 *
 * @author ruoyi
 * @date 2024-09-28
 */
public class AccountRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 活动链接 */
    @Excel(name = "活动链接")
    private String url;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String image;

    /** 接单价格 */
    @Excel(name = "接单价格")
    private BigDecimal price;

    /** 接单数量 */
    @Excel(name = "接单数量")
    private Integer count;

    /** 老板id */
    private String bossId;

    /** 老板名称 */
    @Excel(name = "老板名称")
    private String bossName;

    /** 完成时间 */
    @Excel(name = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date successTime;

    /** 下单时间 */
    @Excel(name = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date orderTime;

    /** 是否完成 0完成 1未完成 */
    @Excel(name = "是否完成 0已交单 1未交单")
    private Integer isSuccess;

    /** 接单金额合计 */
    private BigDecimal bossPriceSum;

    /** 放单金额合计 */
    private BigDecimal workerPriceSum;

    /** 剩余金额 */
    private BigDecimal overPrice;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getBossName() {
        return bossName;
    }

    public void setBossName(String bossName) {
        this.bossName = bossName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setCount(Integer count)
    {
        this.count = count;
    }

    public Integer getCount()
    {
        return count;
    }
    public void setBossId(String bossId)
    {
        this.bossId = bossId;
    }

    public String getBossId()
    {
        return bossId;
    }
    public void setSuccessTime(Date successTime)
    {
        this.successTime = successTime;
    }

    public Date getSuccessTime()
    {
        return successTime;
    }

    public BigDecimal getBossPriceSum() {
        return bossPriceSum;
    }

    public void setBossPriceSum(BigDecimal bossPriceSum) {
        this.bossPriceSum = bossPriceSum;
    }

    public BigDecimal getWorkerPriceSum() {
        return workerPriceSum;
    }

    public void setWorkerPriceSum(BigDecimal workerPriceSum) {
        this.workerPriceSum = workerPriceSum;
    }

    public BigDecimal getOverPrice() {
        return overPrice;
    }

    public void setOverPrice(BigDecimal overPrice) {
        this.overPrice = overPrice;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public void setIsSuccess(Integer isSuccess)
    {
        this.isSuccess = isSuccess;
    }

    public Integer getIsSuccess()
    {
        return isSuccess;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("orderTime", getOrderTime())
            .append("url", getUrl())
            .append("price", getPrice())
            .append("count", getCount())
            .append("bossId", getBossId())
            .append("bossName", getBossName())
            .append("successTime", getSuccessTime())
            .append("isSuccess", getIsSuccess())
            .toString();
    }
}
